#pragma once
#include <taskschd.h>
#include <comutil.h>
#include <vector>

class CScheduleTaskMgr
{
public:
	CScheduleTaskMgr();
	~CScheduleTaskMgr();

	BOOL Open(LPCTSTR lpFolder);
	VOID Close();
	LONG GetTaskCount();
	BOOL GetTaskList(std::vector<tstring>& vectorTaskList);
	BOOL DeleteTask(LPCTSTR lpTaskName);

private:
	ITaskService*				m_pService;
	ITaskFolder*				m_pRootFolder;
	IRegisteredTaskCollection*	m_pTaskCollection;
};

